<template>
    <el-table
            :data="propertyListData"
            style="width: 100%">
        <el-table-column
                prop="userId"
                label="用户名"
                width="180">
            <template slot-scope="scope">
                <template v-for="(item,key) of userMapData">
                    <template v-if="scope.row.userId == key">
                        <span>{{item}}</span>
                    </template>
                </template>
            </template>
        </el-table-column>
        <el-table-column
                prop="coin"
                label="币种"
                width="180">
        </el-table-column>
        <el-table-column
                prop="total"
                label="总计">
        </el-table-column>
        <el-table-column
                prop="free"
                label="可用">
        </el-table-column>
        <el-table-column
                prop="freeze"
                label="冻结">
        </el-table-column>
    </el-table>
</template>

<script>
    export default {
        name: "PropertyList",
        props: {
            propertyListData: Array,
            userMapData: Object,
        },
        data() {
            return {}
        },
        mounted() {
            // this.getUserName()
        },
        methods: {
            // getUserName(){
            //     for(let key in this.userMapData){
            //         if(key == ){
            //
            //         }
            //     }
            // }
        }
    }
</script>

<style scoped>

</style>
